var app = angular.module('about',[]);
app.controller('aboutcontroller',function($scope,$http,$sce){
	$scope.initView = function($id){
		console.log($id);
		$http({
			method:"get",
			url:apiRoot + "?act=article&op=article_show&article_id="+$id,
		}).then(function SuccessCallback(data){ 
			console.log(JSON.stringify(data));
			$scope.article = $sce.trustAsHtml(data.data.datas.article_content); 
			$scope.article_title = data.data.datas.article_title; 
		},function errorfunction(e){
			error(); 
		}) 
	}
})
	
document.addEventListener('plusready',function(){
	aboutElement = document.querySelector('[ng-controller=aboutcontroller]');
	$scope = angular.element(aboutElement).scope();
	articleid = plus.webview.currentWebview().article_id;
	$scope.initView(articleid);
	$scope.$apply();
},false)
